/* Generate Page Styles - 参考 Inspiration 页面风格 */
.main-content {
  min-height: 100vh;
  background: #0a0a0a;
  color: #ffffff;
  position: relative;
  padding: 0;
  margin: 0;
  /* 移除 overflow: hidden，允许页面滚动 */
}

/* 顶部控制栏 - 固定吸顶 */
.generate-controls {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10;
  border-radius: 12px;
  padding: 8px;
}

.control-filters {
  display: flex;
  gap: 15px;
}

.filter-dropdown {
  position: relative;
}

.filter-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #e5eaf3;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: #3a3a3a;
  border-color: #667eea;
}

.dropdown-arrow {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

/* 主内容区域 */
.generate-main {
  width: 100%;
  height: 100vh;
  padding: 120px 20px 380px 20px; /* 增加底部边距，为固定工具栏留出空间 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow-y: auto; /* 启用内部滚动 */
  overflow-x: hidden; /* 禁止水平滚动 */
}

/* 历史记录列表 */
.history-list {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* 移除高度限制和内部滚动，让外层页面滚动 */
}

/* 自定义滚动条样式 */
.generate-main::-webkit-scrollbar {
  width: 8px;
}

.generate-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.generate-main::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.generate-main::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.8);
}

/* LLM 面板是 fixed 定位，不需要预留空间 */

/* GenerationCard 定位样式 */
.generation-card-container {
  position: fixed;
  bottom: 20px;
  left: calc(50% + 44px);
  transform: translateX(-50%);
  width: 100%;
  min-width: 400px;
  max-width: 800px;
  z-index: 100;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .generation-card-container {
    width: 90vw;
    min-width: 300px;
    bottom: 10px;
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  min-height: 400px;
  justify-content: center;
}

.empty-illustration {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-figure {
  font-size: 120px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.empty-text {
  font-size: 18px;
  color: #9aa5b1;
  font-weight: 500;
}

/* 生成状态 */
.generating-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  width: 300px;
  height: 8px;
  background: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #667eea;
  font-size: 16px;
  font-weight: 600;
}

.generating-text {
  color: #9aa5b1;
  font-size: 16px;
}

/* 结果状态 */
.result-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 600px;
  width: 100%;
}

.result-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.result-content h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.result-placeholder {
  background: #1a1a1a;
  border: 2px dashed #444;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.result-image {
  font-size: 48px;
  margin-bottom: 15px;
}

.result-placeholder p {
  color: #9aa5b1;
  font-size: 16px;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.action-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #ffffff;
}

.action-btn.secondary {
  background: #2a2a2a;
  color: #e5eaf3;
  border: 1px solid #444;
}

/* 注释掉的样式已删除 */

.action-btn.secondary:hover {
  background: #3a3a3a;
  border-color: #667eea;
}

/* 小屏幕响应式 */
@media (max-width: 1380px) {
  .generate-controls {
    display: none; /* 小屏幕隐藏整个控制栏 */
  }
  
  .control-filters {
    gap: 10px;
  }
  
  .filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .generate-main {
    padding: 20px 15px 220px; /* 小屏幕增加底部边距，为工具栏留出空间 */
  }
  
  .empty-illustration {
    width: 150px;
    height: 150px;
  }
  
  .floating-figure {
    font-size: 80px;
  }
  
  .empty-text {
    font-size: 16px;
  }
  
  .progress-bar {
    width: 250px;
  }
  
  .result-placeholder {
    padding: 40px 20px;
  }
  
  .result-actions {
    flex-direction: column;
    width: 100%;
    max-width: 200px;
  }
  
  .action-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .control-filters {
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .generate-main {
    padding: 15px 10px 200px; /* 移动端增加底部边距，为工具栏留出空间 */
  }
  
  .empty-illustration {
    width: 120px;
    height: 120px;
  }
  
  .floating-figure {
    font-size: 60px;
  }
  
  .empty-text {
    font-size: 14px;
  }
  
  .progress-bar {
    width: 200px;
  }
  
  .result-placeholder {
    padding: 30px 15px;
  }
  
  .result-image {
    font-size: 36px;
  }
  
  .result-placeholder p {
    font-size: 14px;
  }
}